#include <stdio.h>

int main(void)
{
    long up_limit, lo_limit;
    long n;

    printf("The program prints the trivial and cubic of all integers in a given range.\n");
    printf("Now enter the upper limit: ");
    scanf("%d", &up_limit);
    printf("Next, enter the lower limit: ");
    scanf("%d", &lo_limit);

    printf("number    square    cube\n");
    for (n = lo_limit; n <= up_limit; n++)
        printf("%4ld     %5ld     %5ld\n", n, n * n, n * n * n);

    return 0;
}